package com.sinovatech.ologger.actionlog.converters;

/**
 * 将文件信息格式化为html a标签
 * @author nanquan
 *
 */
public class UploadFileLinkFormatter implements UploadFileFormatter {

	public String format(String fileName, String webPath, String localPath) {
		StringBuilder fileStr = new StringBuilder(
		"<a class='operationDetailsFileLink' href='");
		fileStr.append(webPath).append("'>");
		fileStr.append(fileName);
		fileStr.append("</a>");
		return fileStr.toString();
	}

}
